package test;

public class PersonService {

	private CarService carService;

	public CarService getCarService() {
		return carService;
	}

	public void setCarService(CarService carService) {
		this.carService = carService;
	}

	public void drive() {
		System.out.println("人说:我要开车了");
		carService.move();
		
	}
	public void say() {
		System.out.println("人说:我上车了");
	}

}
